using ASP;
using HoWave.Web;
using System;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
public class Shop_member_Shop_ViewVIPCard : Page, IRequiresSessionState
{
	protected ScriptManager ScriptManager1;
	protected DropDownList DropShopLevel;
	protected TextBox SearchKey;
	protected Button QuickSearchBtn;
	protected GridView GridView1;
	protected UpdatePanel UpdatePanel1;
	protected ObjectDataSource ObjectDataSource1;
	protected Button Button2;
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
	}
	protected void Button2_Click(object sender, EventArgs e)
	{
		string text = "";
		foreach (GridViewRow gridViewRow in this.GridView1.Rows)
		{
			CheckBox checkBox = (CheckBox)gridViewRow.FindControl("CheckBox1");
			if (checkBox.Checked)
			{
				text = text + gridViewRow.Cells[1].Text + ",";
			}
		}
		if (text.Length > 1)
		{
			text = text.Remove(text.Length - 1);
			Shop_VIPCard shop_VIPCard = new Shop_VIPCard();
			shop_VIPCard.DeleteVIPCard(text);
			this.ObjectDataSource1.Update();
		}
	}
}
